package router

import (
	"github.com/gin-gonic/gin"
	jwt "github.com/go-admin-team/go-admin-core/sdk/pkg/jwtauth"
	"tuowei.com/app/api/apis"
	"tuowei.com/common/middleware"
)

func init() {
	routerCheckRole = append(routerCheckRole, registerExaminationRouter)
}

func registerExaminationRouter(v1 *gin.RouterGroup, authMiddleware *jwt.GinJWTMiddleware) {
	examination := apis.ApiExamination{}
	r := v1.Group("/examination").Use(authMiddleware.MiddlewareFunc()).Use(middleware.CheckLogin)
	r.GET("/list", examination.GetPages)
	r.GET("/detail/:id", examination.Get)
	//r.GET("/subject/list", examination.GetExaminationList)

}
